home *** CD-ROM | disk | FTP | other *** search
/ kermit.columbia.edu / kermit.columbia.edu.tar / kermit.columbia.edu / newsgroups / misc.19980424-19980901 / 000249_news@newsmaster….columbia.edu _Mon Jul 6 17:21:11 1998.msg < prev    next >
Internet Message Format  |  1998-08-31  |  3KB

  1. Return-Path: <news@newsmaster.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id RAA23884
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Mon, 6 Jul 1998 17:21:10 -0400 (EDT)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id RAA10380
  7.     for kermit.misc@watsun; Mon, 6 Jul 1998 17:21:10 -0400 (EDT)
  8. Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
  9. From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
  10. Newsgroups: comp.protocols.kermit.misc
  11. Subject: Re: sending commands to CONNECT
  12. Date: 6 Jul 1998 21:21:06 GMT
  13. Organization: Columbia University
  14. Lines: 35
  15. Message-ID: <6nrf42$8o9$1@apakabar.cc.columbia.edu>
  16. References: <35A1203B.165AF584@ra.rockwell.com>
  17. NNTP-Posting-Host: watsun.cc.columbia.edu
  18. Xref: news.columbia.edu comp.protocols.kermit.misc:8948
  19.  
  20. In article <35A1203B.165AF584@ra.rockwell.com>,
  21. Petre Scheie  <pmscheie@ra.rockwell.com> wrote:
  22. : I'm using Kermit to talk to a device that monitors who goes in and out
  23. : of the building.  The device is designed to talk to a terminal, so I've
  24. : got a Linux box connected to it.  Everything works fine if I connect to
  25. : the device with Kermit and issue commands to the device when in CONNECT
  26. : mode. I can run some reports and the output from those scrolls across
  27. : the screen and are sent to a session log file.  But I want to use a cron
  28. : job to run the reports.  I've got the commands all in a file and they
  29. : seem to get sent to the device, but until I CONNECT, the output from the
  30. : deivce doesn't seem to go anywhere.  If I send the command file to the
  31. : device, then do a CONNECT, all the commands and responses appear on the
  32. : screen, as if they are buffered somewhere.  If I turn the session log on
  33. : I can capture this to a file.  But to automate this I need to be able to
  34. : then send a Ctrl-\C to Kermit to get back to command mode.  Anyone know
  35. : how to do this?  Or have any idea about why I can't redirect the output
  36. : from the device that seems to be coming to Kermit into a file?  I've
  37. : tried some redirection to files, but nothing ever gets there.  The only
  38. : way I've been able to get the output to a file is with the LOG SESS FILE
  39. : command, but CONNECT has to be used for that to work, and then I'm back
  40. : to my original problem.  Thanks for any help.
  41. It sounds like you need the manual, "Using C-Kermit":
  42.  
  43.   http://www.columbia.edu/kermit/ck60.html
  44.  
  45. Chapters 17-19 are devoted to script programming.  Chapter 8 is devoted to
  46. CONNECT mode.
  47.  
  48. When the CONNECT command is active, C-Kermit acts like a terminal.  Scripts
  49. execute when the CONNECT command is *not* active.  Instead of CONNECT, use
  50. the INPUT and OUTPUT commands to interact with the remote device.  It's all
  51. explained in the manual, with profuse examples.
  52.  
  53. - Frank